<template>
    <div class="ph">
        <p><span @click="lef()"><van-icon name="arrow-left" /></span><span>{{title}}</span><span @click="rig()"><van-icon name="arrow" /></span></p>
    </div>
</template>

<script>
export default {
    props:["title"],
    methods:{
        lef(){
            this.$router.go(-2)
        },
        rig(){
            this.$router.go(1)
        }
    }
}
</script>

<style scoped>
    .ph{
        padding: 0.1rem 0 1rem 0 0.1rem;
        font-size: 0.12rem;
        width: 100%;
        box-sizing: border-box;
    }
    p{
        display: flex;
        justify-content: space-between;
        padding: 0.1rem;
    }
    span{
        font-size: 0.16rem;
        color: red;
    }
</style>